package com.lungle.warmdiary.app.model.response;

import com.lungle.warmdiary.app.AppException;
import com.lungle.warmdiary.app.model.Entity;
import com.lungle.warmdiary.app.model.ListEntity;

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

/**
 * 活动列表
 */
public class ActiveList extends Entity implements ListEntity {

    private static final long serialVersionUID = 1L;
    public static final int CATALOG_ACTIVE_REWARD = 0x01;
    public static final int CATALOG_ATTEND_NUM = 0x10;
    private List<Active> data = new ArrayList<Active>();
    private int total;

    public static ActiveList parse(InputStream inputStream) throws IOException,
            AppException {
        ActiveList activelist = new ActiveList();

        return activelist;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<Active> getData() {
        return data;
    }

    public void setData(List<Active> data) {
        this.data = data;
    }

    @Override
    public List<Active> getList() {
        return data;
    }
}
